/*
 * show the item content of the bbsitems
 */
package com.sysu.minsysu.zxcx;

import com.sysu.R;
import com.sysu.minsysu.zxcx.NewsNetwork.BBSLinkNode;

import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.widget.TextView;

public class ShowEntryContent extends Activity {
	BBSLinkNode mLinkNode;	
	TextView mTitleTextView;
	TextView mContentTextView;
	
	@Override
	public void onCreate( Bundle savedInstance ){
		super.onCreate(savedInstance);
		setContentView(R.layout.showarticle);
		
		mTitleTextView = (TextView)findViewById(R.id.title);
		mContentTextView = (TextView)findViewById(R.id.content);
		mLinkNode = (BBSLinkNode)getIntent().getSerializableExtra("linknode");
		
		if( mLinkNode==null)
			return ;
		
		mLinkNode.description = mLinkNode.description.replaceAll("<br>", "\n");
		
		mTitleTextView.setText(mLinkNode.title);
		mContentTextView.setText(mLinkNode.description);

	}
}
